Change in Data Intake Client Utility (pas.di.testclient)
-
Modify the conf/CycleClient.properties file in pas.di.testclient with the following:
-
Uncomment tomEE context factory and comment on other context factories
-
contextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory
-
provider.url=tcp://localhost:61616 (provide appropriate url ex: Cycle URL)
-
-
The Dockerfiles directory structure is as follows:
Under the scripts home directory,
Note: Place the Cycle build artifact which is downloaded from the Oracle Software Delivery Cloud in the externallibs/zip directory. Check the below snippet for your reference.
Under externallibs folder
docker build format:
$ docker build --network=host -t <Image_Name>:<Image_Tag> --build-arg CYCLE_PKG="<Cycle Package Name>"
docker build example:
$ docker build --network=host -t cycle_tomee:12.2.0.0 . --build-arg CYCLE_PKG="CycleWeb-tomEE-distribution.zip"
This will generate the Cycle TomEE image.
To start the containerized Cycle application, run docker run format: (-v refers to volumes )
$ docker run -itd --network=host –privileged -v /path/to/the/externallibs:/usr/local/tomee/externallibs --env-file /path/to/the/cycle_env.dat -p <App_External_Port>:<App_Container_Port> --name <Container_Name> --hostname localhost <Image_Name>:<Image_Tag> createServer.sh $DB_TYPE
docker run example:
For ORACLE :
$ docker run -d --restart unless-stopped --network=host --privileged -v /path/to /cycle/externallibs:/usr/local/tomee/externallibs/ --env-file /home/cycle/cycle_env.dat -p 7002:7002 --name cycle_tomee --hostname localhost cycle_tomee:12.2.0.0 createServer.sh ORACLE
For DB2:
$ docker run -d --restart unless-stopped --network=host --privileged -v /path/to /cycle/externallibs:/usr/local/tomee/externallibs/ --env-file /home/cycle/cycle_env.dat -p 7002:7002 --name cycle_tomee --hostname localhost cycle_tomee:12.2.0.0 createServer.sh DB2
For MSSQL :
$ docker run -d --restart unless-stopped --network=host --privileged -v /path/to /cycle/externallibs:/usr/local/tomee/externallibs/ --env-file /home/cycle/cycle_env.dat -p 7002:7002 --name cycle_tomee --hostname localhost cycle_tomee:12.2.0.0 createServer.sh MSSQL
Make Sure you define the Database names as below only (Case Sensitive)
-
Oracle Database: ORACLE
-
DB2 Database: DB2
-
SQL Database: MSSQL
Check the docker logs in the PUTTY console by executing the below command:
$ docker logs -f cycle_tomee
Access the application when you see the Server startup in [xxxxxx] milliseconds message in the PUTTY console.
CycleService URL
-